import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '任务ID',
    align: "center",
    dataIndex: 'taskId'
  },
  {
    title: '会员ID',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: '报价金额',
    align: "center",
    dataIndex: 'price'
  },
  {
    title: '工期（天）',
    align: "center",
    dataIndex: 'timeLimit'
  },
  {
    title: '联系方式',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sort'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: 'tenantId',
    align: "center",
    dataIndex: 'tenantId'
  },
  {
    title: '删除状态(0-正常,1-已删除)',
    align: "center",
    dataIndex: 'delFlag'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '任务ID',
    field: 'taskId',
    component: 'InputNumber',
  },
  {
    label: '会员ID',
    field: 'memberId',
    component: 'InputNumber',
  },
  {
    label: '报价金额',
    field: 'price',
    component: 'InputNumber',
  },
  {
    label: '工期（天）',
    field: 'timeLimit',
    component: 'InputNumber',
  },
  {
    label: '联系方式',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '排序',
    field: 'sort',
    component: 'InputNumber',
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
  },
  {
    label: 'tenantId',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '删除状态(0-正常,1-已删除)',
    field: 'delFlag',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
